package jp.ameba.meshistock.app.controller.image;

import jp.ameba.meshistock.app.controller.BaseController;
import jp.ameba.meshistock.app.service.UploadService;

import org.slim3.controller.Navigation;
import org.slim3.controller.upload.FileItem;

public class UploadController extends BaseController {

    private UploadService uploadService = new UploadService();

    @Override
    protected Navigation runImpl() {

        FileItem image = requestScope("images");
        uploadService.upload(image);
        requestScope("message", "success");
        return null;
    }
}
